<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">我的模版管理</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" method="get" class="form-inline">
      <table class="tab-content table-bordered table text-center" border="1">
          <tr>
            <td class="text-left"><a class="btn btn-info" href="{:url('Other/addNewmobal')}">添加模板</a></td>
          </tr>
          <tr>
            <td class="text-left">模糊查询：模版名称<input type="text" class="form-control" name="title"><button class="btn-info btn" type="submit">查询</button></td>
          </tr>
      </table>
    </form>
      <table class="table table-striped table-bordered table-hover bud_hei text-center">
          <tr class="info">
            <th class="text-center">NO.</th>
            <th class="text-center">标题</th>
            <th class="text-center">作者</th>
            <th class="text-center">时间</th>
            <th class="text-center">维护</th>
          </tr>
          <tr>
              <td>1</td>
              <td>会议通知</td>
              <td>蔡启蒙</td>
              <td>2017-12-12</td>
              <td>
                  <a href="javascript:;">修改</a>
                  <a href="javascript:;" class="delete">删除</a>
              </td>
          </tr>
      </table>

    </div>
    <!-- 全局js -->
    {include file="Public/footer"}
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script>
        $(function () {
            //清空网点经纬度：clearLnglat
            $('.delete').click(function () {
                var link = $(this).data('link')
                swal({
                    title: "您确定清空吗",
                    text: "",
                    type: "warning",
                    showCancelButton: true,
                    confirmButtonColor: "#DD6B55",
                    confirmButtonText: "确定",
                    closeOnConfirm: false
                }, function (isConfirm) {
                    if(isConfirm){
                        $.ajax({
                            'type':'post',
                            'url':link,
                            'dataType':'json',
                            'success':function (data) {
                                if(data.success){
                                    swal({
                                        title:data.msg,
                                        type:'success'
                                    },function () {
                                        location.reload()
                                    })
                                }else
                                    swal(data.msg, "", "error");
                            }
                        })
                    }

                });
                return false
            });
        })
    </script>
</body>

</html>
